package com.example.oracle.service.serviceImpl;

import com.example.oracle.mapper.InfoMapper;
import com.example.oracle.pojo.Info;
import com.example.oracle.service.InfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Liu
 */
@Service
public class InfoServiceImpl implements InfoService {
    @Autowired
    InfoMapper infoMapper;

    @Override
    public int insertInfo(Info info) {
        return infoMapper.insertInfo(info);
    }

    @Override
    public List<Info> selects(Info info) {
        return infoMapper.selects(info);
    }

    @Override
    public int updateInfo(Info info) {
        return infoMapper.updateInfo(info);
    }
}
